<!--#
layout("/layouts/platform.html"){
#-->
<header class="header navbar bg-white shadow">
    <div class="btn-group tool-button">
        <a class="btn btn-primary navbar-btn" href="${base}/platform/order/after/refundment" id="goBack" data-pjax><i class="ti-angle-left"></i>${msg['globals.button.back']}</a>
    </div>
</header>

<div class="content-wrap">
    <div class="wrapper" style="min-height:500px;">
        <section class="panel panel-form">
            <form id="editForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                  action="${base}/platform/order/after/refundment/editDo" method="post">
                <input name="id" type="hidden" value="${obj.id}">
                <div class="row mb10 mt10">
                    <div class="col-lg-12">
                        <div class="form-group">
                            <label for="afterSaleId" class="col-sm-2 control-label">${msg['order.after.refundment.column.afterSaleId']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="afterSaleId" class="form-control" name="afterSaleId" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.afterSaleId']}" value="${obj.afterSaleId}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="applyTime" class="col-sm-2 control-label">${msg['order.after.refundment.column.applyTime']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="applyTime" class="form-control" name="applyTime" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.applyTime']}" value="${obj.applyTime}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="refundmentMoney" class="col-sm-2 control-label">${msg['order.after.refundment.column.refundmentMoney']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="refundmentMoney" class="form-control" name="refundmentMoney" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.refundmentMoney']}" value="${obj.refundmentMoney}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="applyMan" class="col-sm-2 control-label">${msg['order.after.refundment.column.applyMan']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="applyMan" class="form-control" name="applyMan" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.applyMan']}" value="${obj.applyMan}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="orderId" class="col-sm-2 control-label">${msg['order.after.refundment.column.orderId']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="orderId" class="form-control" name="orderId" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.orderId']}" value="${obj.orderId}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="personType" class="col-sm-2 control-label">${msg['order.after.refundment.column.personType']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="personType" class="form-control" name="personType" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.personType']}" value="${obj.personType}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="reason" class="col-sm-2 control-label">${msg['order.after.refundment.column.reason']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="reason" class="form-control" name="reason" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.reason']}" value="${obj.reason}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="remarks" class="col-sm-2 control-label">${msg['order.after.refundment.column.remarks']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="remarks" class="form-control" name="remarks" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.remarks']}" value="${obj.remarks}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="returnType" class="col-sm-2 control-label">${msg['order.after.refundment.column.returnType']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="returnType" class="form-control" name="returnType" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.returnType']}" value="${obj.returnType}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="returnState" class="col-sm-2 control-label">${msg['order.after.refundment.column.returnState']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="returnState" class="form-control" name="returnState" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.returnState']}" value="${obj.returnState}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="virtualMoney" class="col-sm-2 control-label">${msg['order.after.refundment.column.virtualMoney']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="virtualMoney" class="form-control" name="virtualMoney" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.virtualMoney']}" value="${obj.virtualMoney}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="errorTimes" class="col-sm-2 control-label">${msg['order.after.refundment.column.errorTimes']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="errorTimes" class="form-control" name="errorTimes" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.errorTimes']}" value="${obj.errorTimes}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="renfudmentTime" class="col-sm-2 control-label">${msg['order.after.refundment.column.renfudmentTime']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="renfudmentTime" class="form-control" name="renfudmentTime" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.renfudmentTime']}" value="${obj.renfudmentTime}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="returnSerialNum" class="col-sm-2 control-label">${msg['order.after.refundment.column.returnSerialNum']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="returnSerialNum" class="form-control" name="returnSerialNum" data-parsley-required="true"
                                       placeholder="${msg['order.after.refundment.column.returnSerialNum']}" value="${obj.returnSerialNum}" >
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3"></div>
                <div class="col-lg-6">
                    <div class="form-group text-center">
                        <label></label>

                        <div>
                            <button class="btn btn-primary btn-block btn-lg btn-parsley" data-loading-text="${msg['globals.button.submit.tip']}">${msg['globals.button.submit']}</button>
                        </div>
                    </div>
                </div>
            </form>
        </section>

    </div>
</div>
<script language="JavaScript">
    $(document).ready(function () {
        $('#editForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 0) {
                    Toast.success(data.msg);
                    setTimeout(function () {
                        $("#goBack").trigger("click");
                    }, 1000);
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>
<!--#}#-->